<div class="header-index-fix"></div>
<div class="header">
    <div class="container-fixed">
        <div class="header-left">
            <a href="#"><img src="{:getImgidpath(C('website.logo'))}" alt=""></a>
        </div>
        <div class="header-right">
            <ul class="header-nav">
                <li <if condition="$mark eq 'index'">class="active"</if>>
                    <a href="{:U('index/index')}">项目大厅</a>
                </li>
                <li <if condition="$mark eq 'rank'">class="active"</if>>
                    <a href="{:U('rank/index')}">排行榜</a>
                </li>
                <li <if condition="$mark eq 'article'">class="active"</if>>
                    <a href="{:U('article/index')}">资讯</a>
                </li>
                <li <if condition="$mark eq 'company'">class="dropdown dropdown-hover active"<else />class="dropdown dropdown-hover"</if>>
                    <a href="#" data-toggle="dropdown">企业服务 <span class="drop-arrow"></span></a>
                    <ul class="dropdown-menu drop-nav">
                        <li>
                            <a href="{:U('bug/index')}">漏洞认领</a>
                        </li>
                        <li>
                            <a href="{:U('company/index')}">入驻企业</a>
                        </li>
                    </ul>
                </li>
                <li class="dropdown dropdown-hover">
                    <a href="#" data-toggle="dropdown">白帽服务 <span class="drop-arrow"></span></a>
                    <ul class="dropdown-menu drop-nav">
                        <li>
                            <a href="{:U('index/index')}">技术知识分享</a>
                        </li>
                        <li>
                            <a href="{:U('index/index')}">等级与福利</a>
                        </li>
                    </ul>
                </li>
                <li>
                    <a href="{:U('bbs/index')}">论坛</a>
                </li>
            </ul>
            <div class="header-user">
                <div class="user-btns">
                    <div class="dropdown">
                        <button class="btn btn-primary" type="button" data-toggle="dropdown">提交 <span class="caret"></span></button>
                        <ul class="dropdown-menu pull-right">
                            <li><a href="{:U('bug/post')}">提交漏洞</a></li>
                            <li class="divider"></li>
                            <li><a href="{:U('project/post')}">提交项目</a></li>
                        </ul>
                    </div>
                </div>
                <div class="user-login">
                    <if condition="$Think.session.user eq null">
                        <a href="{:U('user/login')}">登录</a>
                    <a href="{:U('user/register')}">注册</a>
                    <else />
                        <a href="{:U('user/member')}">{$Think.session.user.username}</a>
                    </if>
                </div>
            </div>
        </div>
    </div>
</div>
